
#include <qlayout.h>

#include "BnetJoinHelpSettingsWidget.h"


BnetJoinHelpSettingsWidget::BnetJoinHelpSettingsWidget( QWidget * parent, 
							const char * name, 
							WFlags f )
    : 
    QWidget( parent, name, f ),
    WIDGET_SPACING_SIZE( 15 )
{
     // Widget creation.   
    enabledCheckBox_ = new QCheckBox( tr("&Enabled"), this );
    
    // Layout.
    QVBoxLayout *mainLayout = new QVBoxLayout( this );
    mainLayout->addSpacing( WIDGET_SPACING_SIZE );
    mainLayout->addWidget( enabledCheckBox_ );
    mainLayout->addSpacing( WIDGET_SPACING_SIZE );
    mainLayout->addStretch();
    mainLayout->addSpacing( WIDGET_SPACING_SIZE );
}

bool BnetJoinHelpSettingsWidget::getEnabled() const
{
    return enabledCheckBox_->isChecked();
}

void BnetJoinHelpSettingsWidget::setEnabled( const bool& enabled )
{
    enabledCheckBox_->setChecked( enabled );
}


// End of file.
